bin2h [Tool Command]

Outputs to a C header file the array names generated when binary files are linked.

Syntax

bin2h -o output-file filename filename ...

Description

When binary files are made into an object file using "objcopy," special variable names are attached. This tool collects those names and outputs them to a header file.

The command arguments are described below:

-o output-file
Specifies the name of the output file. The extension is automatically given as .h
filename
The name of a binary file. A list of "extern" declarations is created from the array names that are generated when an object file is made for the listed binary filenames, and this list is output to a C header.

Notes

This tool outputs to a header file, so you need to rewrite the actual routine in the program to correspond to its contents.

AGB-06-0031-001A (2/26/01)
© 2001 Nintendo of America Inc.